Pupillometry guided anesthesia